<template>
   <van-form v-bind="$attrs" v-on="$listeners" :ref="formId" :key="formId">
    <!-- 继承全部插槽 -->
    <template v-for="(index,name) in $slots" :slot="name">
      <slot :name="name">
      </slot>
    </template>
  </van-form>
</template>

<script>
import { Form } from "vant";
export default {
    props: {
      formId: {
        type: String,
        default: "form"
      }
    },
    components: {
    [Form.name]: Form,
  },
}
</script>

<style>

</style>